package com.smag.system.domain.vo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.smag.common.annotation.Excel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class FarmArticleVo {

    private Long id;
    private String title;
    private String content;
    @Excel(name = "文章摘要")
    private String summary;

    /** 缩略图 */
    private String thumbnail;

    /** 分类id */
    private Long categoryId;
    //所属分类名称
    @TableField(exist = false)
    private String categoryName;
    //是否置顶（0否，1是）
    private String isTop;
    //状态（0已发布，1草稿）
    @Excel(name = "状态(0已发布/1草稿)")
    private String status;
    //访问量
    @Excel(name = "访问量")
    private Long viewCount;
    //是否允许评论 1是，0否
    private String isComment;
    //删除标志（0代表存在 2代表删除）
    private Integer delFlag;
    @TableField(fill = FieldFill.INSERT)
    private Long createBy;

    /**
     *
     */
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd  HH:mm:ss")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /**
     *
     */
    private Long updateBy;

    /**
     *
     */
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd  HH:mm:ss")
    private Date updateTime;
    //备注
    private String remark;
    private Long productId;

}
